Simple type inheritance

This is simplest fix for bug #135.