Evaluate dynamic fields in event when used with gsub

Closes #1529
Merge git://github.com/logstash/logstash