Fixed native struct parent
Fixed formatting
Remove bitfields from equals and hashcode
Removed redundant allocation