Embind performance and code size improvements