Fixed upgrade procedure
Definitions of helper functions used at hive.operation type casts must be always overwritten by upgrade to match current version of libhfm library.
Definitions of helper functions used at hive.operation type casts must be always overwritten by upgrade to match current version of libhfm library.