Make Parse::toArray handle  methods on objects