pidl/python: Work towards supporting more complex types (arrays, etc).