Dart parameter highlighting fixes.

Fixes skewed highlighting offsets for optional/named parameters and adds tests.