Added an experimental support for Extension objects. (issue #204)