nested rec definitions, fix for #101