Optimize and improve <references> to {{reflist}} handling (fix #9)