Fixes collision and base element loading in native load

Custom elements saving/loading appears to work with ZERO crashes
now!! Next TODO item: backwards compatibility in the form of a
conversion tool.
Changes to C++ for all native code
Moves to filename for save files
Fixes up custom element loading in save files