MB-9307: Add typespecs to newly added functions

Change-Id: I7d48215ef6fb760236446f5bfb4006075ba092d9
Reviewed-on: http://review.couchbase.org/30958
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Sarath Lakshman <sarathlakshman@slynux.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>