Prevent byref types metadata generation

Fixes #794