moved from as_hashmap to as_val_hashmap for lua:map