Added isGroup and isSmartShape functions that can distinguish the two types of elements.
Added more of the underscore library to support calling _() to return an array-like object as a proper Array instance.
Attempt at listening for onFwPreferencesChange event, which doesn't seem to get fired.