Fixed 64 to 32 truncation warnings with slight API change
Also had to change some invocations of GetMetaData() where a raw integer was passed, to make it unambiguous.
Also had to change some invocations of GetMetaData() where a raw integer was passed, to make it unambiguous.