Fix excerpt/content helpers

fixes #1591
- Convert quoted strings to numbers
- Update code examples
- Update helper tests