fixed index leaking and get/index for id:0 w/ tests

Tracked down a bug that was causing models with an attribute value of 0 to not be indexed or accessible with `get(0)`. 

Also found that indexes were leaking into the root `this.index` when not overwritten so fixed that too.