Fix WrongNumberArgumentsException

It should extend FlowException, and be moved to where other
specific exceptions live.

Change-Id: Idf8c57cf2109f88cf547e1c146b35c4eea8dc321
Merge "Fix WrongNumberArgumentsException"