Fix issues introduced by PR #319
Fix issues introduced by PR #319

Regrettably PR #319 introduced two compiler warnings which were not noticed before it was merged.  So:

* Fix call to createListFromArrayLike to include correct perms (used for throwing errors in certain circumstances).

* Fix warning due to functions of different signatures being assigned to wrapper.

NeilFraser/CodeCity,google/CodeCity,google/CodeCity,NeilFraser/CodeCity,google/CodeCity,NeilFraser/CodeCity,google/CodeCity,NeilFraser/CodeCity