enable correct interpretation of arrays sent by jQuery via ajax calls