Add max def & rep levels to several API parameters

Column level was not sufficient to find the max repetition & definition
level for the current column, as those values depend on the
optional/repeated status of container columns from the schema root to
the current column.