Improved the way SQL code is disabled/enabled on editing forms. User now
is asked to apply the same disabling/enabling status to object's
refereces.