fix for bug in jQuery 1.8+ where it doesn't properly return the outerHeight
fixes for setting the values of a layout so that they can be used as replacement values for file field types. Includes additional fix for when errors are returned by a layout that it retains the last posted state