gf: add rise-time to rect source models and fixed broken optimization