Restore temporary variable removal optimization
Fixed incorrect temporary variable allocation (issue #6)