Update README.md

Add examples for function types with optional and rest arguments