Fix #279 by keeping track of which beans have been fully resolved.