mysqli-emulate_bound_params():

Looping over large numbers of items with array_shift() is expensive.
Reverse the array and fetch items from the top of the pile.
Unit tests for emulate_bound_params