Exclusive: After a wild season 7 finale, showrunner Dan Goor explains how Brooklyn Nine-Nine chose to handle Amy's pregnancy, with inspiration from Melissa Fumero herself