Extensive go-over on the partitioning code. #622 is maybe "possibly fixed", but there's no real indication of what constitutes an invalid combination of flags. FIXES #884 FIXES #951 FIXES #953 FIXES #622