Replace DeveloperError with RuntimeError where appropriate