[minor] Optimizations.

Better param stripping & optimized for-loop.

It should be noted that the latter type now takes precedence over the
former.

Technically, this "breaks" the undocumented precedence "feature".