Add support for dynamic type.

Signed-off-by: Sean Doughety <seancdougherty@gmail.com>