rewrite type to position_type

otherwise type is not present in resulting response right now