Fixed problem that arose with A* search with some variable ordering
schemes when using preexpansion of levels with domain 1 or 2.