Add support for ctx.params in getStaticProps/getServerSideProps (#3696)
Dynamic segments should be passed a single string, while catch-all segments should be passed a list of strings.
Furthermore, ctx.params was previously undefined because we weren't passing it forward through the render options.