fix bug if ByValue types are explicitly used in struct fields
Merge pull request #249 from Falldog/master

Add registryCloseKey()
enable platform tests to run w/o native build bits
remove superfluous (and problematic) utf8 BOM