Simplify type command implementation
Fix for Rust nightly 2014-12-20