Add strict equalities in src/shared/*

@timvandermeij Would you mind reviewing this?