Dont expand1 rules with multiple children

First adds a testcase to verify that expand1 rules aren't expanded if (after expansion) they have multiple children, then fixes the implementation to satisfy that requirement.