Fix null value handling in object/get

Fixes #125. The bug is because `typeof null === "object"` in JS. It adds a test for the bug and fixes it with a check for a truthy value in addition to the `typeof object` test.