raise ValueError instead of custom error when initializing with wrong size_type, test for it
pep8 fixes