Fixed a bug in ungroup (duplicating the wrong transform)
Put in some exceptions for bad conditions.
align now makes a group after doing the align.