Fix type spec

diff_index_specs clearly accepts 'undefined' as an argument because it
calls index_data, which pattern matches on undefined in its definition.
Fix type spec

Fixes the return value of riak_object:from_binary