a hokey fix for materializeBelongsTo and materializeHasMany. needs revisit

Signed-off-by: Floyd Pink <imbleedingme@googlemail.com>
commit for the web

Signed-off-by: Floyd Pink <imbleedingme@googlemail.com>