Test more elaborate nested dependencies

This required a custom type that takes two parameters, so
Complex was added.