Better GameObject container design.

Fixes issue #5.
Also added basic GameObject test.