bug fixes for swagger type-to-file function for storage types, fixes for CouchDb view support