Fix st_buffer documentation and tests