Check name exist for all scopes while injecting

Checks all scopes for name conflict before injecting. Resolve #7