rename ServiceInvalid to ServiceNotObject, to indicate what exactly is invalid; use new ReflectionFailure exception in place of old ServiceInvalid; add some 'use' statements