fixed an issue with string media formatter
fixed an issue with error when result is of incorrect type
fixed an issue with caching of typed results