support JSON hash/array in filter_record_transformer

a proposed implementation for #521 
`expand` method should just expand placeholders. Treating hash or array should be placed in outside.