Changed the generation of method bodies to avoid duplication of local variables when a fixed instance is required.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>