MAINT: raise warnings for logm of some possibly nearly singular matrices