First draft of getAllTypes()

Not tested yet.