Automatically set selection box

This calculates a single box that surrounds objects of "nodebox" drawtype if they don't have a selection box manually set.