#557, #569: The container option can be defined by a callback, thanks to @mattrick