Add a dictionary variation of layout and constrain functions.
Use generics.
Merge pull request #47 from PiersonBro/add-dictionary-based-layout

Add a dictionary variation of the layout and constrain functions Take 2