margin_from_types_byname function

Translate row and column types to integer margins