Allow passing any object to the APNS payload

This section was modified to allow passing any object to the APNS. Previously, only primitive types were allowed.