bugfix in alias create (prevent wrong aliasing with custom types)