However, since I have modified template1 (and most likely, those databases were copied from it in the past), it changed default_parameter for them as well.
This seems unlikely to be the case - changing template1 should not be affecting other existing databases.