Make get_fptr_shape
public and a bug fix
#3118
Merged
get_fptr_shape
public and a bug fix
#3118