Added list sanitising support

Currently only supportin lists of structs.