Fixes casting between integer values. Fixes naming generation of
methods. Adds more informative exception trace when no method was found
during rendering