Support regexp options in %r{} notation (fixes #318)

This commit allows regexp literals constructed using %r{} notation to
also accept regexp options/flags. Specs also added.