Add has_map_fields test to the HiPE suite

Also cleaned up hipe_beam_to_icode slightly.