The formula interface for layer functions

Hmm. Actually a formula as an element in `options` will not be evaluated, so it does not work; `options` will be returned as is.