Moved useful functions from wrapped assert functions, because option `CONFIG_OPTIMIZATION_ASSERTIONS_DISABLED=y` will remove this functions. Closes https://github.com/espressif/esp-idf/issues/2068
closes #461