Fix implicit conversion loss compiler warning in parse_codefence

Changed the return type of `parse_codefence` in `document.c` from `int` to `size_t`. After that, my compiler (clang 503 from LLVM 3.4) does not complain any more about implicit conversion loss.

Tests are still passing.