[core] Use bare_type in closure and point_order.
[test][core] Test pointers and references in point_type, tag, closure and point_order.