[grids.interfaces] add unique_boundary_type_mask, no_boundary_type_mask, check_boundary_types
[grids.boundaryinfos] use check_boundary_types in __init__