Add scoping support

Maybe add a spec to test plain old classes and relations separately or if you think this is good then :+1: