Simple hex to decimal converter function example for SO

http://stackoverflow.com/questions/20888593
Ignores fix
Generic array_idx, possibly incomplete (forgot about it)
Scrap sample showing messing with 'bytea' in Perl
Demo written for http://stackoverflow.com/q/24883127/398670