Collection of useful class extensions in Swift