with testcases for default realm vs dynamically loaded realm
[WIP] Fixed several smaller syntax and design issues.

Still does not handle insert into array properly. Still has testcases method.