WIP: Got working with strin testing
Move over to use value.toString() to determin type of object. Makes test work on Gecko bu tnot on PhantomJS yet...