Element serialization update

Updates all UI elements to have proper serialization.  At this time, the
serializing of UiListener objects is not supported.