Pass ctx as last optional parameter in natives

This way natives that don't need the *ctx* parameter can avoid to define it.

In a followup, I'll make more natives be independent from *ctx* by moving *newArray* and its relatives to *util*.