implement simple spl_object_hash

Challenge Accepted! :+1: 
I'd like to see a few more test cases before I merge it :)