Fix #36; improve nested attribute error messages