nomagic compatibility for reference completion

I noticed that reference completion doesn't work with `nomagic` set (one might suggest I should just enable `magic`...), this should fix it. Note that it forces g:LatexBox_cite_pattern and g:LatexBox_ref_pattern to be interpreted with magic on. This might not be the best way of doing it.