Added RegExp#flags and yield-sending tests.

Closes #341.