CRM-13294 - Support for array style input on id for contact.get (resubmit)

Cherry-picked commits previous PR.

See also:
 * https://github.com/civicrm/civicrm-core/pull/1517
 * http://issues.civicrm.org/jira/browse/CRM-13294