refactor container classes to use check_type to raise a ValueError intentionally
Merge pull request #14 from dannyroberts/check-type

refactor container classes to use check_type