Fix excerpt/content helpers

fixes #1591
- Convert quoted strings to numbers
- Update code examples
- Update helper tests
Merge pull request #1594 from halfdan/1591-excerpt-helper

Fix excerpt/content helpers