umxparse: fixed and improved index reader and chunk parser

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>