Fix for proxied array barfing

 - Added specs for serializing arrays which are transparently proxied through
 another class.
 - Added check to native ext to convert an T_OBJECT to a T_ARRAY if
   possible, and leave it alone otherwise.
 - Updated Rakefile to work with latest (10.0.4)