Embind code size reduction by using lightweight RTTI record for non-polymorphic types

This change shaved 175 KB off of our minified engine JavaScript.