metadata: fix more MissingIntPtrCtorException cases

This workaround is getting a bit out of hand...
Merge pull request #4 from knocte/master

metadata: fix more MissingIntPtrCtorException cases