GenBCode: cleanup optimizations

Method-level cleanup optimizations.

See individual commit messages.
Let's avoid the intermediate array creation:

```scala
getArgumentTypes(method.desc).iterator.map(_.getSize max 1).sum
```