Use correct test for array inclusion

Was using hasOwnProperty(), when actually what was intended was
indexOf() not equal to -1.  This breaks if you had an attribute
named 'length'.

Close #98
Close #99

Test authored by @michaelnisi (who also found the bug)
v0.5.3