Attempt at fixing #5

Apologies if I screwed this pull request up, but this is my first time doing it.  :)

Anyway, I added an additional null check for the rhs when the ltype is object.  I also added a simple test.