Allows ArrayAccess objects to be set as the data.
Fixes a stupid mistake with the setting $data.
Merge pull request #38 from JackBlower/fix/from-array

Allows ArrayAccess objects to be set as the data.