Move Leaf(List)SchemaNode.getType() to a common interface