More robust regex for inline citations not inside brackets

- Moved citekey search to stripCitekeys()
- Print troublesome lines for better error catching