Fixed: trancodeDataToDocument should also handle stdClass objects.
Fixed: simpler version of trancodeDataToDocument for stdClass. Changes tests and added new behaviour into exisiting test.
Merge pull request #4 from liip/stdclass

Fixed: trancodeDataToDocument should also handle stdClass objects.