Make decode_element index into a func lookup table.
Make decode_element index into a func lookup table.

By directly indexing into a decoder function lookup table we
can safe some time.

Benchmarked with arrays of 10000 integers and 10000 strings.
old decode, lookup via globals():  3.917245864868164
decode, direct index: 3.6924779415130615

martinkou/bson