Modified internal registration.

Now container stores binding inside array, rather than AA.

Added tests.
Improved exception.