Adjust automodsumm to truly act like `currentmodule` is in force

See astropy/astropy#1826